<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: shanpengfei
  Date: 2019/2/28
  Time: 5:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="basePath" value="/zyz"></c:set>

<jsp:include page="../template_header.jsp"></jsp:include>

<style>
    .register-form {
        width: 800px;
        margin: 100px auto 0 auto;
    }
    select, input {
        width: 500px;
        height: 40px;
        margin: 5px 0;
    }
</style>

<div class="register-form">
    <form action="${basePath}/project/add" method="post">
        <%--<input type="hidden" name="projectTypeId" value="" placeholder="志愿项目类型"><br>--%>
        <select name="projectTypeId">
            <c:forEach items="${projectTypes}" var="type">
                <option value="${type.id}">${type.name}</option>
            </c:forEach>
        </select><br>
        <input type="text" name="title" placeholder="志愿项目主题"><br>
        <input type="text" name="content" placeholder="志愿项目内容"><br>
        <input type="text" name="time" placeholder="志愿项目时间"><br>
        <input type="submit" value="添加">
    </form>
</div>

<jsp:include page="../template_footer.jsp"></jsp:include>
